# -*- coding:utf-8 -*-

from django.db import models
from drf_yasg import openapi
from rest_framework import serializers

from db import models

TokenParameter = [
    openapi.Parameter(
        name='token', in_=openapi.IN_HEADER,
        type=openapi.TYPE_STRING,
        description="用户登录验证码",
        required=True,
        default=""
    )
]


class RegisterSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.AxeUserInfo
        exclude = ["id", "create_at", "update_at", "delete_at", "status"]
